<?php

define('HOST',$_SERVER['HTTP_HOST']); //host name
define('URL', substr($_SERVER['REQUEST_URI'],1)); //file being requested in the browser
$url_name = explode('.',URL);
define('URLNAME', $url_name[0]); //URL without the extension 
define('URLEXTENSION', $url_name[1]); // extension of the file being called

//define your root directory path and branch name (if any)
define('ROOT', dirname(__FILE__));
define('BRANCH', ''); // '/html' for http://etat.us

//define local database host, name, access username and password. The commented settings are for http://etat.us
define('DBHOST','localhost'); //etat.db.5820751.hostedresource.com 
define('DBNAME', 'etat');
define('DBUSER', 'root'); //etat
define('DBPASS', ''); //remoteDB123

//define parser interval (in minutes)
define('interval', '30');

//define salt for password encryption
define('salt', 'etat_salt');

if(URL == 'config.php') header("Location: http://".HOST."/index.php?m=5");